package pe.com.bbva.util;

import java.sql.CallableStatement;
import java.sql.Connection;

import org.apache.log4j.Logger;
import org.hibernate.Session;



public class SQLUtil {

	private static Logger logger = Logger.getLogger(SQLUtil.class);
	
	public static void close(Connection connection,CallableStatement cstmt,Session session){
		try{
		if(cstmt!=null) cstmt.close();
		if(connection!=null)   connection.close();
		session.close();
		}catch(Exception e){
			logger.debug(e.getMessage());
		}
		
	} 
}
